<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description"  content=""/>
<meta name="keywords" content=""/>
<meta name="robots" content="ALL,FOLLOW"/>
<meta name="Author" content="AIT"/>
<meta http-equiv="imagetoolbar" content="no"/>
<title>{% block title %}{% endblock title %}</title>

<link rel="icon" href="/static/images/4k_icon.ico" type="image/x-icon"/> 
<link rel="shorcut icon" href="/static/images/4k_icon.ico" type="image/x-icon"/> 
<link rel="stylesheet" href="/static/css/reset.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/screen.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/fancybox.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/jquery.wysiwyg.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/jquery.ui.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/visualize.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/visualize-light.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/jquery.autocomplete.css" type="text/css"/>
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="/static/css/ie7.css" />
<![endif]-->

<link rel="stylesheet" href="/static/css/timepicker.css" type="text/css"/>
<link rel='stylesheet' type='text/css' href='/static/css/jquery.weekcalendar.css' />
<script type='text/javascript' src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/jquery.visualize.js"></script>
<script type="text/javascript" src="/static/js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="/static/js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="/static/js/jquery.fancybox.js"></script>
<script type="text/javascript" src="/static/js/jquery.idtabs.js"></script>
<script type="text/javascript" src="/static/js/jquery.datatables.js"></script>
<script type="text/javascript" src="/static/js/jquery.jeditable.js"></script>
<script type="text/javascript" src="/static/js/jquery.ui.js"></script>
<script type="text/javascript" src="/static/js/jquery.jcarousel.js"></script>
<script type="text/javascript" src="/static/js/jquery.validate.js"></script>

<script type='text/javascript' src='/static/js/jquery.weekcalendar.js'></script>
<script type="text/javascript" src="/static/js/jquery.autocomplete.min.js"></script>

<script type="text/javascript" src="/static/js/excanvas.js"></script>
<script type="text/javascript" src="/static/js/cufon.js"></script>
<script type="text/javascript" src="/static/js/script.js"></script>
<script type="text/javascript" src="/static/js/jquery.timepicker.js"></script>
<script type="text/javascript">
{% block extrahead %}
{% endblock extrahead %}
</script>
</head>

<body>

<div class="pagetop">
	<div class="head pagesize"> <!-- *** head layout *** -->
		<div class="head_top">
			<div class="topbuts">
				<ul class="clear">
				<li><a href="/edita_senha/{{usuario_logado.id}}">Alterar Senha</a></li>
				<li><a href="/ver_usuario/">Perfil</a></li>
				<li><a href="/logout/" class="red">Logout</a></li>
				</ul>
				
				<div class="user clear">
					<img src="/static/arquivos/{{detalhe_usuario.foto}}" class="avatar" alt=""  width="64px" height="64px"/>
					<span class="user-detail">
						<span class="name">Bem Vindo {{detalhe_usuario.nome}}</span>
						<span class="text">Logado como {{detalhe_usuario.cargo}}</span>
					</span>
				</div>
			</div>
			
			<div class="logo clear">
			<a href="/index" title="View dashboard">
				<img src="/static/images/logo_4k.png" alt="" class="picture" />
				<span class="textlogo">
					<span class="title">CONSULTORIA EDUCACIONAL</span>
					<span class="text">Sistema de Informação</span>
				</span>
			</a>
			</div>
		</div>
		
		<div class="menu">
			<ul class="clear">
			<li id="botao_home" ><a href="/index">Home</a></li>
			{%if perm_secr %}
			<li id="botao_cadastro"><a href="/cadastro">Cadastros</a>
				<ul>
					<li><a href="/cadastro_aluno">Aluno</a></li>
					{% if perm_mant %}
					<li><a href="/cadastro_usuario">Usuário</a></li>
					{% endif %}
					{% if perm_admi %}
					<li><a href="/cadastro_inventario">Inventário</a></li>
					{% endif %}
					{% if perm_mant %}
					<li><a href="/cadastro_local">Local</a></li>
					{% endif %}
				</ul>
			</li>
			{% endif %}
			
			<li id="botao_busca"><a href="/busca">Busca</a>
				<ul>
					<li><a href="/tabela_aluno/">Aluno</a></li>
					{% if perm_mant %}
					<li><a href="/tabela_funcionario/">Funcionário</a></li>
					{% endif %}
					
					{% if perm_admi %}
					<li><a href="/tabela_inventario/">Inventário</a></li>
					{% endif %}
					<li><a href="/busca_aula/">Aula</a></li>
				</ul>
			</li>
			
			<li id="agenda"><a href="/agenda">Agendas</a>
				<ul>
					<li><a href="/agenda_tabela_aluno">Aluno</a></li>
					<li><a href="/agenda_tabela_prof">Professor</a></li>
					<li><a href="/agenda_tabela_local">Local</a></li>
				</ul>
			</li>
			
			{% if perm_coor %}
			<li id="botao_fluxo"><a href="/fluxo/">Fluxo de Caixa</a>
				<ul>
					<li><a href="/controle_entradas/">Controle de Entradas</a></li>
					{% if perm_admi %}
					<li><a href="/historico_entradas/">Histórico de Entradas</a></li>
					{% endif %}
					{% if perm_admi %}
					<li><a href="/controle_gastos/">Controle de Gastos</a></li>
					{% endif %}
				</ul>
			</li>
			{% endif %}
			
			{% if perm_coor %}
			<li id="botao_relatorios"><a href="/relatorio/">Relatórios</a>
				<ul>
					<li><a href="/tabela_relatorio_aluno/">Alunos</a></li>
					{% if perm_admi %}
					<li><a href="/tabela_relatorio_professor/">Professores</a></li>
					{% endif %}
				</ul>
			</li>
			{% endif %}
			
			{% if perm_admi %}
			<li id="botao_precos"><a href="/sistema/">Sistema</a>
				<ul>
					{% if perm_mant %}	
					<li><a href="/precos_unidade/">Preços</a></li>
					{% endif %}
					<li id="botao_excel"><a href="/excel/">Exportar para Excel</a></li>
				</ul>
			</li>
			{% endif %}
			
		</div>
	</div>
</div>
	
<div class="main pagesize"> <!-- *** mainpage layout *** -->
	<div class="main-wrap">
		<div class="content-box">
			<div class="box-body">
		{% block content %}
		{% endblock content %}
			</div>
		</div>
	</div>
</div>

<div class="footer">
	<div class="pagesize clear">
		<p class="bt-space15"><span class="copy"><strong>© 2011 Powered by <a href="http://www.polijr.com.br">Poli Júnior</a></strong></span></p>
		<img src="/static/images/logo_pj.png" alt="" class="block center" />
	</div>
</div>


</body>
</html>
